﻿using System;
using Pay.DTO;
using Pay.TO;

namespace Pay.IService {
    public interface IUpgradeService {
        /// <summary>
        /// 支付成功
        /// </summary>
        /// <param name="pay_no"></param>
        /// <param name="transaction_no"></param>
        /// <param name="pay_time"></param>
        /// <returns></returns>
        int PaySuceess(string pay_no, string transaction_no, DateTime? pay_time);
        /// <summary>
        /// 支付失败
        /// </summary>
        /// <param name="pay_no"></param>
        /// <param name="transaction_no"></param>
        /// <param name="status"></param>
        /// <param name="fail"></param>
        /// <returns></returns>
        int PayFailOrUnConfirm(string pay_no, string transaction_no, ChargeStatus status, string fail = "");
        /// <summary>
        /// 升级支付创建对象
        /// </summary>
        /// <param name="model"></param>
        void AddByQuickPay(quick_pay_model model);
    }
}
